package com.project.bean;

import java.time.LocalDate;

public class LogBean {
    /**日志id*/
    private int logId;
    /**日志产生时间*/
    private LocalDate date = LocalDate.now();
    /**日志内容*/
    private String info;

    public LogBean() {
    }

    public LogBean(String info) {
        this.date = date;
        this.info = info;
    }


    public int getLogId() {
        return logId;
    }

    public void setLogId(int logId) {
        this.logId = logId;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "logId=" + logId +
                ", date=" + date +
                ", info='" + info + '\'' +
                '}'+"\n";
    }
}
